package com.efast.dmom.mgmt.entity.les;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 盘点头表
 * </p>
 *
 * @author ChenLiPeng
 * @since 2018-06-12
 */
@TableName("tt_whm_count_header")
public class TtWhmCountHeader implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "tt_whm_count_header_id", type = IdType.AUTO)
	private Integer ttWhmCountHeaderId;
	/**
	 * 要求盘点日期
	 */
	@TableField("count_date")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date countDate;
	/**
	 * 盘点类型 0循环盘点 1物理盘点
	 */
	@TableField("count_type")
	private String countType;
	/**
	 * 盘点说明
	 */
	@TableField("count_note")
	private String countNote;
	/**
	 * 创建人
	 */
	@TableField("count_createman")
	private String countCreateman;
	/**
	 * 状态0新任务 1盘点中 2盘点完成 3关闭
	 */
	@TableField("count_status")
	private String countStatus;
	/**
	 * 创建类型 0系统自动 1手工创建
	 */
	@TableField("create_type")
	private String createType;
	/**
	 * 实际盘点日期
	 */
	@TableField("actual_count_date")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date actualCountDate;
	/**
	 * 0初始 1已产生库存调整指令
	 */
	@TableField("adjust_ge_status")
	private String adjustGeStatus;
	/**
	 * 是否需要盲盘 0不1 需要
	 */
	@TableField("show_inv_qty")
	private Integer showInvQty;
	/**
	 * 盘点仓库id
	 */
	@TableField("warehouse_id")
	private Integer warehouseId;
	/**
	 * 盘点仓库号
	 */
	@TableField("warehouse_no")
	private String warehouseNo;
	/**
	 * 盘点任务编号
	 */
	@TableField("count_task_no")
	private String countTaskNo;
	/**
	 * 盘点级别 0按库位 1按跟踪号 2按批次 3 包装流水号
	 */
	@TableField("count_level")
	private String countLevel;
	/**
	 * 是否激活
	 */
	@TableField("mark_status")
	private Integer markStatus;
	/**
	 * 创建时间
	 */
	@TableField("create_time")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	/**
	 * 创建用户
	 */
	@TableField("create_user")
	private String createUser;
	/**
	 * 上次更新时间
	 */
	@TableField("last_update_time")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date lastUpdateTime;
	/**
	 * 更改用户
	 */
	@TableField("last_update_user")
	private String lastUpdateUser;
	/**
	 * 版本控制
	 */
	@TableField("opt_counter")
	private Integer optCounter;
	/**
	 * 企业代码
	 */
	@TableField("company_code")
	private String companyCode;

	public Integer getTtWhmCountHeaderId() {
		return ttWhmCountHeaderId;
	}

	public void setTtWhmCountHeaderId(Integer ttWhmCountHeaderId) {
		this.ttWhmCountHeaderId = ttWhmCountHeaderId;
	}

	public Date getCountDate() {
		return countDate;
	}

	public void setCountDate(Date countDate) {
		this.countDate = countDate;
	}

	public String getCountType() {
		return countType;
	}

	public void setCountType(String countType) {
		this.countType = countType;
	}

	public String getCountNote() {
		return countNote;
	}

	public void setCountNote(String countNote) {
		this.countNote = countNote;
	}

	public String getCountCreateman() {
		return countCreateman;
	}

	public void setCountCreateman(String countCreateman) {
		this.countCreateman = countCreateman;
	}

	public String getCountStatus() {
		return countStatus;
	}

	public void setCountStatus(String countStatus) {
		this.countStatus = countStatus;
	}

	public String getCreateType() {
		return createType;
	}

	public void setCreateType(String createType) {
		this.createType = createType;
	}

	public Date getActualCountDate() {
		return actualCountDate;
	}

	public void setActualCountDate(Date actualCountDate) {
		this.actualCountDate = actualCountDate;
	}

	public String getAdjustGeStatus() {
		return adjustGeStatus;
	}

	public void setAdjustGeStatus(String adjustGeStatus) {
		this.adjustGeStatus = adjustGeStatus;
	}

	public Integer getShowInvQty() {
		return showInvQty;
	}

	public void setShowInvQty(Integer showInvQty) {
		this.showInvQty = showInvQty;
	}

	public Integer getWarehouseId() {
		return warehouseId;
	}

	public void setWarehouseId(Integer warehouseId) {
		this.warehouseId = warehouseId;
	}

	public String getWarehouseNo() {
		return warehouseNo;
	}

	public void setWarehouseNo(String warehouseNo) {
		this.warehouseNo = warehouseNo;
	}

	public String getCountTaskNo() {
		return countTaskNo;
	}

	public void setCountTaskNo(String countTaskNo) {
		this.countTaskNo = countTaskNo;
	}

	public String getCountLevel() {
		return countLevel;
	}

	public void setCountLevel(String countLevel) {
		this.countLevel = countLevel;
	}

	public Integer getMarkStatus() {
		return markStatus;
	}

	public void setMarkStatus(Integer markStatus) {
		this.markStatus = markStatus;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public String getLastUpdateUser() {
		return lastUpdateUser;
	}

	public void setLastUpdateUser(String lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}

	public Integer getOptCounter() {
		return optCounter;
	}

	public void setOptCounter(Integer optCounter) {
		this.optCounter = optCounter;
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	@Override
	public String toString() {
		return "TtWhmCountHeader{" + ", ttWhmCountHeaderId=" + ttWhmCountHeaderId + ", countDate=" + countDate
				+ ", countType=" + countType + ", countNote=" + countNote + ", countCreateman=" + countCreateman
				+ ", countStatus=" + countStatus + ", createType=" + createType + ", actualCountDate=" + actualCountDate
				+ ", adjustGeStatus=" + adjustGeStatus + ", showInvQty=" + showInvQty + ", warehouseId=" + warehouseId
				+ ", warehouseNo=" + warehouseNo + ", countTaskNo=" + countTaskNo + ", countLevel=" + countLevel
				+ ", markStatus=" + markStatus + ", createTime=" + createTime + ", createUser=" + createUser
				+ ", lastUpdateTime=" + lastUpdateTime + ", lastUpdateUser=" + lastUpdateUser + ", optCounter="
				+ optCounter + ", companyCode=" + companyCode + "}";
	}
}
